package day09API.stream;

import java.io.*;

/**
 * @author DBX
 * @effect 使用字符流读取文本数据
 * @date 2021/8/27 0027 - 14:04
 */
public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("File/osw.txt");
        InputStreamReader isr = new InputStreamReader(fis);
        int readNext;
        while ((readNext = isr.read()) != -1){
            System.out.print((char)readNext);
        }
        isr.close();
    }
}
